import 'package:flutter/material.dart';
class MyAppBar{
 AppBar getAppBar(String title , {TabBar? bottom,double? toolbarHeight,double elevation=0.2,backgroundColor} ){
    return AppBar(
      foregroundColor: Colors.black,
      toolbarHeight: toolbarHeight,
      title: Text(title,style: TextStyle(fontSize: 16),),
      elevation: elevation,
      centerTitle: true,
      backgroundColor: backgroundColor??Color.fromRGBO(233, 233, 233, 1),
      bottom: bottom,
      // backgroundColor: Colors.red,
    );
  }
}